﻿@using MVCMongo.Services
@model IEnumerable<DataMongo.Entities.Category>

@{
    ViewBag.Title = "CategoryList";
}


<li>
    <a href="#" data-toggle="dropdown" class='dropdown-toggle'>
        <span>Browse</span>
        <span class="caret"></span>
    </a>
    <ul class="dropdown-menu" style="overflow-y: scroll; height: 500px" >
        @foreach (var item in Model)
        {
            <li>
                <a href="@Url.RouteUrl("CategoryFeeds", new { id = item.CategoryId, categoryname =UtilityService.GetCategoryNameById(item.CategoryId)})" class="categoryList" data-categoryid="@item.CategoryId">@UtilityService.GetCategoryNameById(item.CategoryId)</a>
            </li>
        }
    </ul>
</li>
